package com.woniuxy.educationplatform.service.impl;

import com.woniuxy.educationplatform.bean.OptBean;
import com.woniuxy.educationplatform.mapper.OptMapper;
import com.woniuxy.educationplatform.service.IOptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OptServiceImpl implements IOptService {
    @Resource
    private OptMapper optMapper;
    @Override
    public List<OptBean> findByOrderId(Long id) {
        return optMapper.findByOrderId(id);
    }

    @Override
    public void add(OptBean optBean) {
        optMapper.add(optBean);
    }
}
